home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / BOX.CC < prev    next >
Text File  |  1993-04-04  |  607b  |  25 lines

  1. void box(int trow, int tcol, int lrow, int lcol, int wattr, int battr)
  2. /* This will draw a box using upper left row,col and lower right row,col
  3.    wattr is attribute character for center of box, battr is the border attr.    
  4. */
  5. {
  6.     int i, j, len;
  7.  
  8.     writef(trow,tcol,battr,"┌");
  9.     writef(trow,lcol,battr,"┐");
  10.     writef(lrow,tcol,battr,"└");
  11.     writef(lrow,lcol,battr,"┘");
  12.     for(i=tcol +1;i<lcol;i++) {
  13.         writef(trow,i,battr,"─");
  14.         writef(lrow,i,battr,"─");
  15.     }
  16.  
  17.     for(i=trow + 1;i<lrow;i++) {
  18.         writef(i,tcol,battr,"│");
  19.         writef(i,lcol,battr,"│");
  20.     }
  21.     clrbox(trow,tcol,lrow,lcol,wattr);
  22.  
  23.  
  24. }
  25.